<?php if (!defined('THINK_PATH')) exit(); if(is_array($tree)): $i = 0; $__LIST__ = $tree;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sty): $mod = ($i % 2 );++$i;?><option value="<?php echo ($sty["id"]); ?>" <?php if($list['goods_type']==$sty[id]){echo 'selected';} ?>>
	<?php if($sty['level']==1){echo $sty['title'];} ?>
	<?php if($sty['level']==2){echo '|——'.$sty['title'];} ?>
	<?php if($sty['level']==3){echo '|———————'.$sty['title'];} ?>
	<?php if(!empty($sty['_'])): echo R('Goods/tree', array($sty['_'])); endif; endforeach; endif; else: echo "" ;endif; ?>